package com.java.springcloud.alibaba.service;

import com.java.springcloud.entities.CommonResult;
import com.java.springcloud.entities.Payment;
import org.springframework.stereotype.Component;

/**
 * @author jingjintao
 * @date 2021/8/19 - 0:04
 **/
@Component
public class PaymentFallBackService implements PaymentService {
    @Override
    public CommonResult<Payment> paymentSQL(Long id) {
        return new CommonResult<>(44444, "服务降级返回，----PaymentFallBackService",
                new Payment(id, "errorSerial"));
    }
}
